package com.guguskins.back.entity.bo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author duttonliu
 * @date 2021/6/24 11:36
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder(toBuilder = true)
public class SaveBoxBo {

    /**
     * 盒子名称
     */
    @NotEmpty(message = "盒子名称不能为空")
    private String boxName;

    /**
     * 0 下架 1 上架
     */
    @NotNull(message = "盒子状态不能为空")
    private Integer boxState;

    /**
     * 盒子排序
     */
    private Integer boxSort;

    /**
     * 0 盲盒 1 道具站
     */
    @NotNull(message = "盒子类型不能为空")
    private Integer boxType;

    /**
     * 盒子分类
     */
    @NotNull(message = "盒子分类不能为空")
    private Integer boxCategory;

    /**
     * 盒子背景图
     */
    @NotEmpty(message = "盒子图片不能为空")
    private String boxImageUrl;

    /**
     * 金蛋掉落
     */
    private Integer boxGoldenEgg;

    /**
     * 银蛋掉落
     */
    private Integer boxSilverEgg;
}
